package com.fudan.cfg.action;

import java.util.Map;

import com.fudan.cfg.base.ActionDef;
import com.fudan.run.ctx.annotation.ActionAdapter;

@ActionAdapter("foreach")
public class Foreach extends ActionDef{

	private String target;
	public Foreach(String name, String type,String target) {
		super(name, type,target);
	}

	@Override
	public ActionDef build(Map<String, Object> configuration) {
		this.target = (String) configuration.get("target");
		return this;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

}
